package Hash_and_ordered_tables;
//哈希表如果是自定义类型的话按地址传递-----基元类型按值传递
import java.util.HashMap;

public class Hashtable {
    public static void main(String[] args) {
        HashMap<Integer,String> map = new HashMap<>();
        map.put(1,"none1");//放和改
        System.out.println(map.containsKey(1));//查
        System.out.println(map.get(1));//取
    }
}
